'Declaration Public Overloads Shared Function ForceInBackground(Of T)( _ ByVal src As IEnumerable(Of T), _ ByVal cancellationToken As CancellationToken, _ ByVal maxBufferSize As Integer _ ) As IEnumerable(Of T)
public static IEnumerable<T> ForceInBackground<T>( IEnumerable<T> src, CancellationToken cancellationToken, int maxBufferSize )
Parameters
- src
- The source sequence.
- cancellationToken
- A token to cancel enumeration.
- maxBufferSize
- The maximum buffer size. If zero, the size is unlimited.
Type Parameters
- T
- The type of elements in the sequence.
Return Value
A sequence that is evaluated in a background thread.